package net.jblog.struts.frontoffice.module.view;

import java.util.Set;

public class CategoryView implements Comparable<CategoryView> {
	private Long id;
	private String name;
	private Set<CategoryView> children;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Set<CategoryView> getChildren() {
		return children;
	}
	public void setChildren(Set<CategoryView> children) {
		this.children = children;
	}
	
	@Override
	public int compareTo(CategoryView o) {
		return o.getName().compareTo(this.getName());
	}
	
}
